<%@page import = "clothing.database.EmployeeManager" %>
<%@ include file = "templates/header.jsp" %>

<%
String iid = request.getParameter("id");
System.out.println("updateE id"+iid);
String firstname= request.getParameter("firstname");
String mi= request.getParameter("mi");
String lastname= request.getParameter("lastname");
String phone= request.getParameter("phone");
String address = request.getParameter("address");
String username = request.getParameter("username");
String password = request.getParameter("password");
String type = request.getParameter("type");
System.out.println(firstname);
int id = Integer.parseInt(iid);
EmployeeManager em = new EmployeeManager();
em.updateEmployee(id, firstname, mi, lastname, phone, address, username, password, type);
	

response.sendRedirect("displayEmployees.jsp");
%>
<%@ include file = "templates/footer.jsp" %>